<nz-card [nzBordered]="false" style="border-bottom: 1px solid #e8e8e8;">
  <form nz-form nzLayout="vertical" [formGroup]="validateForm" (ngSubmit)="submitForm()"><!-- *ngIf="entity.type != 'json'"-->
    <nz-row nzGutter="16">
      <nz-col nzLg="6" nzMd="12" nzSm="24">
        <nz-form-item>
          <nz-form-control>
            {{entity.name}}<span *ngIf="entity.type == 'image'"><br> {{entity.remark}}</span>
          </nz-form-control>
        </nz-form-item>
      </nz-col>
      <nz-col [nzXl]="{span:10, offset:2}" [nzLg]="{span:12}" [nzMd]="{span:24}" nzSm="24">
        <nz-form-item>
          <!--number-->
          <base-number-input *ngIf="entity.type == 'number'" [entity]="entity" [validateForm]="validateForm"></base-number-input>
          <!--string-->
          <base-string-input *ngIf="entity.type == 'string'" [entity]="entity" [validateForm]="validateForm"></base-string-input>
          <!--array-->
          <base-array-input *ngIf="entity.type == 'array'" [entity]="entity" [validateForm]="validateForm"></base-array-input>
          <!--json-->
          <base-json-input *ngIf="entity.type == 'json'" [entity]="entity" [validateForm]="validateForm"></base-json-input>
          <!--json-array-->
          <base-json-array-input *ngIf="entity.type == 'json-array'" [entity]="entity" [validateForm]="validateForm"></base-json-array-input>
          <!--image-->
          <base-img-input *ngIf="entity.type == 'image'" [entity]="entity" [validateForm]="validateForm"></base-img-input>
          <!--date-->
          <base-date-input *ngIf="entity.type == 'date'" [entity]="entity" [validateForm]="validateForm"></base-date-input>
        </nz-form-item>
      </nz-col>
      <nz-col [nzXl]="{span:4, offset:2}" [nzLg]="{span:6}" [nzMd]="{span:24}" nzSm="24">
        <nz-form-item>
          <nz-form-control>
            <button nz-button type="submit" [nzType]="'primary'">
              保存
            </button>
          </nz-form-control>
        </nz-form-item>
      </nz-col>
    </nz-row>
  </form>
</nz-card>
